package people;

import selectCourse.Course;

import java.io.Serializable;

public class Student extends Person implements Serializable{
    public Course[] CourseList = new Course[2];
    public final String major;

    public Student(int number, String name, int age, String major, String sex) {
        super(number, name, age, sex);
        this.major = major;
    }


    @Override
    public String toString() {
        return "Student{" +
                "number=" + number +
                ", age=" + age +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", major='" + major + '\'' +
                '}';
    }

    public void setCourse(Course[] s) {
        this.CourseList = s;
    }

}


 
	